import request from '@/utils/request'

// 查询泳票次数列表
export function listTimes(query) {
  return request({
    url: '/system/times/list',
    method: 'get',
    params: query
  })
}

// 查询泳票次数详细
export function getTimes(id) {
  return request({
    url: '/system/times/' + id,
    method: 'get'
  })
}

// 新增泳票次数
export function addTimes(data) {
  return request({
    url: '/system/times',
    method: 'post',
    data: data
  })
}

// 修改泳票次数
export function updateTimes(data) {
  return request({
    url: '/system/times',
    method: 'put',
    data: data
  })
}

// 删除泳票次数
export function delTimes(id) {
  return request({
    url: '/system/times/' + id,
    method: 'delete'
  })
}

// 导出泳票次数
export function exportTimes(query) {
  return request({
    url: '/system/times/export',
    method: 'get',
    params: query
  })
}